import { defineConfig } from 'vite';
import monkey from 'vite-plugin-monkey';

export default defineConfig({
  plugins: [
    monkey({
      entry: 'src/main.js',
      userscript: {
        icon: './uviewnoadicon.jpg',
        namespace: 'http://tampermonkey.net/',
        match: [
          'https://uiadmin.net/*'
        ],
        name: 'UViewPlus广告拦截器',
        description: 'UViewPlus广告拦截测试',
        version: '0.4',
        grant: 'none',
        license: 'MIT',
        author: 'yhxw',
        run_at: 'document-end',
        noframes: true,
      },
    }),
  ],
});
